import request from '@/utils/request'

// 新增部门
export const addDepartments = data => request.post('/company/department', data)

// 查询部门
export const getDepartments = () => request.get('/company/department')

// 修改部门
export const upDepartments = data => request.put(`/company/department/${data.id}`, data)

// 删除部门
export const delDepartments = id => request.delete(`/company/department/${id}`)

// 根据id查询部门
export const getDepartmentsId = id => request.get(`/company/department/${id}`)
